import java.util.HashMap;

/**
 * @author : zzr
 * @description :
 * @date :
 */
public class TestDemo7 {
    public static void main(String[] args) {
        HashMap<Integer, String> map = new HashMap<>();
        map.put(1, "Hello");
        map.put(2, "world");
        map.put(3, "hello");
        map.put(4, "Hello");
        map.forEach((i, s) -> {
            System.out.println(i + " = " + s);
        });
    }
}
